package com.me.videoservice.model.entry;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.time.LocalDateTime;
import lombok.Data;

@TableName(value = "tb_device_info")
@Data
public class DeviceInfo {

  @TableId(type = IdType.AUTO)
  private Long id;
  private String deviceId;
  private String streamCode;
  private Integer offlineFlag;
  private Integer pushFlag;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private LocalDateTime createdAt;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private LocalDateTime updatedAt;
  @TableField(exist = false)
  private DeviceLocationInfo locationInfo;

}
